package com.feifan.utils;

/**
 * 断言工具类
 * @author Donald
 * @create 2019-04-29 22:20
 */
public class AssertUtils {

    private AssertUtils(){}

    public static void assertObjectNull( Object object )
    {
        if ( null == object )
        {
            throw new RuntimeException("当前对象为空");
        }
    }

    public static void assertStringNull( String str )
    {
        if ( null == str )
        {
            throw new RuntimeException("字符串为空");
        }
    }

}
